
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@tracespace/xml-id
Advanced tools
XML ID generation and sanitation utilities for tracespace projects
ID attributes in XML documents (e.g. SVG images) have certain requirements. This module provides utility methods for sanitizing and generating strings to meet those requirements so they can safely be used as XML IDs.
Part of the tracespace collection of PCB visualization tools.
Please note: because this package is an internal utility library, it may not follow semver and breaking changes could be introduced in any version bump. You should install an exact version.
npm install --save --save-exact @tracespace/xml-id
# or
yarn add --exact @tracespace/xml-id
const {sanitize, random} = require('@tracespace/xml-id')
The alphabet used by this module is a subset of what is valid for XML which is also CSS identifier and URL friendly.
Takes a string and replaces any characters that would be invalid in an XML ID with underscores (_
).
const id = sanitize('0abc def.') // id === _abc_def_
Returns a basic, (non-cryptographically-secure) random string that can be safely used as an XML ID. If unspecified or 0, length
will be 12.
const id = random() // maybe "w57gH_nT3-o8"
const id = random(8) // maybe "Gi3ma2Ef"
FAQs
XML ID utilities for tracespace projects
The npm package @tracespace/xml-id receives a total of 1,440 weekly downloads. As such, @tracespace/xml-id popularity was classified as popular.
We found that @tracespace/xml-id demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.